<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <title>笔记库首页</title>
    <#include "common/link_css.ftl">

</head>
<body>
<!-- 导航 -->
<#include "common/nav.ftl">
<!-- 正文 -->
<div class="m-container m-padded-tb-large">
    <div class="ui container">
        <div class="ui stackable grid">
            <!-- 左边博客列表 -->
            <div class="eleven wide column">
                <!-- header -->
                <div class="ui top attached segment">
                    <div class="ui middle aligned two column grid">
                        <!-- 第一列 -->
                        <div class="column">
                            <h3 class="ui teal header">热门笔记</h3>
                        </div>
                        <!-- 第二列 -->
                        <div class="right aligned column">
                            共<h3 class="ui orange header m-inline-block m-text-thin">20</h3>篇
                        </div>
                    </div>

                </div>
                <!-- content -->
                <#if notelist??>
                    <#list notelist as note>
                        <div class="ui attached segment">
                            <div class="ui padded vertical segment m-padded-tb-large">
                                <div class="ui mobile reversed stackable grid">
                                    <div class="eleven wide column">
                                        <h3 class="ui header"><a href="/note/detail?id=${note.id}"> ${note.title}</a>
                                        </h3>
                                        <p class="m-text">
                                            时刻记得合法士大夫三大还得发夸奖灰色地带客户方上看到返回可市东海疯狂送都护府历史的覅华塑返回可顺风快士大夫会啥的看法和塑料袋客户方开始打女咖啡可还复活赛后是科科长是和爱乳房</p>
                                        <div class="ui grid">
                                            <div class="eleven wide column">
                                                <div class="ui horizontal link list">
                                                    <div class="item">
                                                        <img src="img/back.png" class="ui avatar image">
                                                        <div class="content">
                                                            <a href="#" class="header">若竹流风</a>
                                                        </div>
                                                    </div>
                                                    <div class="item">
                                                        <i class="calendar icon"></i>2020-10-02
                                                    </div>
                                                    <div class="item">
                                                        <i class="eye icon"></i>${note.eyes}
                                                    </div>
                                                </div>
                                            </div>
                                            <div class="right aligned five wide column">
                                                <a href="#" target="_blank"
                                                   class="ui teal basic label m-padded-mini m-text-thin">
                                                    认知升级
                                                </a>
                                            </div>
                                        </div>
                                    </div>

                                    <div class="five wide column">
                                        <a href="/note/detail?id=${note.id}" target="_blank">
                                            <img src="https://unsplash.it/800/450?image=1005" class="ui rounded image"/>
                                        </a>
                                    </div>
                                </div>
                            </div>

                        </div>
                    </#list>

                </#if>

                <!-- footer -->
                <div class="ui bottom attached segment">
                    <div class="ui middle aligned two column grid">
                        <!-- 第一列 -->
                        <div class="column">
                            <a href="#" class="ui mini teal basic button">上一页</a>
                        </div>
                        <!-- 第二列 -->
                        <div class="right aligned column">
                            <a href="#" class="ui mini teal basic button">下一页</a>
                        </div>
                    </div>
                </div>

            </div>
            <!-- 右边的top -->
            <div class="five wide column">
                <!-- 分类 -->
                <div class="ui segments">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="idea icon"></i>
                                分类
                            </div>
                            <div class="right aligned column">
                                <a href="/category" target="_blank">more <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <div class="ui fluid vertical menu">
                            <#if categoryList??>
                                <#list categoryList as category>
                                    <a class="item" href="#">
                                        ${category.categoryName}
                                        <div class="ui teal basic left pointing label">2020</div>
                                    </a>
                                </#list>
                            </#if>
                        </div>

                    </div>
                </div>
                <!-- 标签 -->
                <div class="ui segments m-margin-top">
                    <div class="ui secondary segment">
                        <div class="ui two column grid">
                            <div class="column">
                                <i class="tags icon"></i>
                                标签
                            </div>
                            <div class="right aligned column">
                                <a href="#" target="_blank">more <i class="angle double right icon"></i></a>
                            </div>
                        </div>
                    </div>
                    <div class="ui teal segment">
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb_tiny">
                            方法论
                            <div class="detail">22</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb_tiny">
                            方法论
                            <div class="detail">22</div>
                        </a>
                        <a href="#" target="_blank" class="ui teal basic left pointing label m-margin-tb_tiny">
                            方法论
                            <div class="detail">22</div>
                        </a>

                    </div>
                </div>
                <!-- 最新推荐 -->

                <div class="ui segments m-margin-top">
                    <div class="ui secondary segment">
                        <i class="bookmark icon"></i>
                        热门推荐
                    </div>
                    <#if noteRankList??>
                        <#list noteRankList as noteRank>
                            <div class="ui segment">
                                <a href="/note/detail?id=${noteRank.id}" target="_blank"
                                   class="m-black m-text-thin">${noteRank.title}</a>
                            </div>
                        </#list>
                    <#else>
                        暂无最新推荐
                    </#if>
                </div>
                <!-- 二维码 -->
                <h4 class="ui horizontal divider header">
                    扫码关注我
                </h4>
                <div class="ui centered card" style="width: 11em;">
                    <img src="img/gongzhong.jpg" class="ui rounded image">
                </div>
            </div>
        </div>
    </div>
</div>
<!-- 底部 -->
<#include "common/footer.ftl">
<#include "common/link_js.ftl">
<script>
    $('.menu.toggle').click(function () {
        $('.m-item').toggleClass('m-mobile-hide');
    });
    $('.ui.dropdown').dropdown({
        on: 'hover'
    });
</script>
</body>
</html>